package com.tomorrowbbs.controller;

import com.tomorrowbbs.controller.base.ABaseController;
import com.tomorrowbbs.domain.vo.ResponseVo;
import com.tomorrowbbs.service.IForumBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/board")
public class ForumBoardController extends ABaseController {

    @Autowired
    private IForumBoardService forumBoardService;

    @RequestMapping("/loadBoard")
    public ResponseVo loadBoard(){
        return getSuccessResponseVo(forumBoardService.getBoardTree(null));
    }
}
